<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="cj"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Homepage</title>
<link rel="stylesheet" type="text/css" href="resources/css/style.css">
</head>
<body>
	<div id="khung">
		<div id="header">
			<img src="resources/image/banner.jpg" />
		</div>
		<div id="menu">
<ul style="width: 100%;"> 
<li> <a href="/homepage" >Homepage </a> </li>
<li> <a href="<%=request.getContextPath()%>/login" id="login"> Login </a> </li>
<li> <a href="<%=request.getContextPath()%>/register" id="register"> Register </a> </li>
<li> <a href="<%=request.getContextPath()%>/foodlist" id="foodlist"> Food List </a> </li>
<li> <a href="<%=request.getContextPath()%>/displayaddfood" id="addfood"> Add Food </a> </li>
<li> <a href="<%=request.getContextPath()%>/UserList" id="userlist"> User List </a> </li>


</ul>
<br/>
</div>
 </div>
		<cj:set var="url">${url}</cj:set>

		<cj:choose>

			<cj:when test="${url=='foodlist'}">

				<jsp:include page="/WEB-INF/view/FoodList.jsp"></jsp:include>

			</cj:when>
			<cj:when test="${url=='displayaddfood'}">

				<jsp:include page="/WEB-INF/view/AddFood.jsp"></jsp:include>

			</cj:when>
			<cj:when test="${url=='foodinfo'}">

				<jsp:include page="/WEB-INF/view/FoodInfo.jsp"></jsp:include>

			</cj:when>
			<cj:when test="${url=='register'}">

				<jsp:include page="/WEB-INF/view/register.jsp"></jsp:include>

			</cj:when>
			<cj:when test="${url=='login'}">

				<jsp:include page="/WEB-INF/view/login.jsp"></jsp:include>

			</cj:when>
				<cj:when test="${url=='userlist'}">

				<jsp:include page="/WEB-INF/view/UserList.jsp"></jsp:include>

			</cj:when>
	
		</cj:choose>
</body>
</html>